<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增生肖吉凶')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-shenxiao-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">生肖：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">六合生肖：</label>
                <div class="col-sm-8">
                    <input name="liuhe" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">三合生肖：</label>
                <div class="col-sm-8">
                    <input name="sanhe" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">相克生肖：</label>
                <div class="col-sm-8">
                    <input name="xiangke" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">本命佛：</label>
                <div class="col-sm-8">
                    <input name="benmingfo" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">性格分析：</label>
                <div class="col-sm-8">
                    <textarea name="detail" class="form-control" required></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">幸运花：</label>
                <div class="col-sm-8">
                    <input name="xingyunhua" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">吉祥色：</label>
                <div class="col-sm-8">
                    <input name="jixiangse" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">禁忌色：</label>
                <div class="col-sm-8">
                    <input name="jise" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">幸运数字：</label>
                <div class="col-sm-8">
                    <input name="xingyunshuzi" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">禁忌数字：</label>
                <div class="col-sm-8">
                    <input name="jishuzi" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五行：</label>
                <div class="col-sm-8">
                    <input name="wuxing" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五常：</label>
                <div class="col-sm-8">
                    <input name="wuchang" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "naming/shenxiao"
        $("#form-shenxiao-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-shenxiao-add').serialize());
            }
        }
    </script>
</body>
</html>